import { createAPI, createFormAPI, addSetSubjectAPI, subjectAPI, getNewListAPI, adddeletAPI } from '@/utils/request'

export const login = data => createFormAPI('/frame/login', 'post', data)
export const register = data => createAPI('/frame/register', 'post', data)
export const logout = data => createAPI('/frame/logout', 'post', data)
export const passwd = data => createAPI('/frame/passwd', 'post', data)
export const profile = data => createAPI('/frame/profile', 'post', data)
export const addSetSubject = data => addSetSubjectAPI('/subjects', 'post', data)
export const getNewList = data => getNewListAPI('/directorys', 'get', data)
export const adddelet = data => adddeletAPI('/subjects/:id', 'put', data)
export const subject = data => subjectAPI('/subjects', 'get', data)
